﻿<!DOCTYPE html>
<html lang="en">
<#include "../include/resource-head.ftl"/>
<body>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <div class="page-content">
            <div class="col-xs-12">
                <div class="row-fluid">
                    <div class="widget-box">
                        <div class="widget-header widget-header-blue widget-header-flat">
                            <h4 class="lighter">
                                <i class="icon-plus"></i>添加鲜花
                            </h4>
                        </div>
                        <div class="widget-body">
                            <div class="widget-main">
                                <div class="step-content row-fluid position-relative">
                                    <form class="form-horizontal" action="/admin/goods/add" method="post"
                                          enctype="multipart/form-data">
                                        <div class="form-group has-info">
                                            <label class="col-xs-12 col-sm-2 control-label no-padding-right">套餐名</label>
                                            <div class="col-xs-12 col-sm-9">
                                                <input type="text" class="width-100" name="name"  required/>
                                            </div>
                                        </div>

                                        <div class="form-group has-info">
                                            <label class="col-xs-12 col-sm-2 control-label no-padding-right">摄影师</label>
                                            <div class="col-xs-12 col-sm-9">
                                                <input type="text" class="width-100" name="grapher"  required/>
                                            </div>
                                        </div>

                                        <div class="form-group has-info">
                                            <label class="col-xs-12 col-sm-2 control-label no-padding-right">礼服</label>
                                            <div class="col-xs-12 col-sm-9">
                                                <input type="text" class="width-100" name="dress"  required/>
                                            </div>
                                        </div>

                                        <div class="form-group has-info">
                                            <label class="col-xs-12 col-sm-2 control-label no-padding-right">价钱</label>
                                            <div class="col-xs-12 col-sm-9">
                                                    <input type="text" name="price" class="width-100">
                                            </div>
                                        </div>

                                        <div class="form-group has-info">
                                            <label class="col-xs-12 col-sm-2 control-label no-padding-right">所属分类</label>
                                            <div class="col-xs-12 col-sm-9">
                                                <select name="categoryid" class="width-100">
                                                    <#list categoryList as item>
                                                        <option value="${item.id}">${item.name}</option>
                                                    </#list>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group has-info">
                                            <label class="col-xs-12 col-sm-2 control-label no-padding-right">展示图</label>
                                            <div class="col-xs-12 col-sm-9">
                                                <input type="file" class="width-100" name="icon"/>
                                            </div>
                                        </div>

                                        <div class="form-group has-info">
                                            <label class="col-xs-12 col-sm-2 control-label no-padding-right">简介</label>
                                            <div class="col-xs-12 col-sm-9">
                                                    <textarea name="descript" class="width-100"></textarea>
                                            </div>
                                        </div>

                                        <div class="form-group has-info">
                                            <label class="col-xs-12 col-sm-2 control-label no-padding-right">具体内容</label>
                                            <div class="col-xs-12 col-sm-9">
                                                    <textarea name="content" id="content"
                                                              style="width: 100%"></textarea>
                                            </div>
                                        </div>


                                        <hr/>
                                        <div class="row-fluid wizard-actions">
                                            <button class="btn" type="reset">重置</button>
                                            <button class="btn btn-success" type="submit">提交</button>
                                        </div>

                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div><!-- /.page-content -->
</div><!-- /.main-content -->
</body>
<#include "../include/resource-script.ftl"/>
<script>
    KindEditor.ready(function (K) {
        window.editor = K.create("#content", {
            uploadJson: '/file/uploadFile',
            fileManagerJson: '',
            allowFileManager: false
        });
    });
</script>
</html>

